package com.zyb.warehouse.mapper;

import com.zyb.warehouse.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * Description:用户登录持久层接口
 */
@Mapper
public interface LoginMapper {
    /**
     * 根据用户账号查询用户
     * @param userCode
     * @return
     */
    @Select("select * from user_info where user_code=#{userCode} and is_delete=0")
    User selectUserByCode(String userCode);
}
